import book.BookList;
import user.Manager;
import user.NormalUser;
import user.User;

public class Main {
    public static void main(String[] args) {
        int ret = new User().choice();

        User user = null;

        if(ret == 1){//管理员
            user = new Manager();
        }else{//普通用户
            user = new NormalUser();
        }

        BookList bookList = new BookList();

        //开始操作图书
        while(ret != 0){
            ret = user.menu();
            user.work(ret, bookList);
        }
    }
}